package com.example.bdplayer;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;

import com.example.bdplayer.info.VideoInfo;

public class MainActivity extends AppCompatActivity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        findViewById(R.id.btn_player).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {

                VideoInfo info = new VideoInfo("射雕英雄传2017版39集","http://pan.plyz.net/s/?u=2369972320&p=movie/EP39.390.mp4");
                startActivity(new Intent(MainActivity.this,PlayerActivity.class)
                        .putExtra("videoInfo", info));
            }
        });
    }
}
